//
//  AppHomeCenter.m
//  云成绩
//
//  Created by Apple1 on 2017/3/18.
//  Copyright © 2017年 zj. All rights reserved.
//

#import "AppCenter.h"
@implementation AppCenter

- (NSMutableArray *)homeDatas{
    if (_homeDatas == nil) {
        _homeDatas = [NSMutableArray array];
    }
    return _homeDatas;
}




@end

#pragma mark - 单例相关
static dispatch_once_t onceToken;
static AppCenter *instance;
@implementation AppCenter (Once)

+ (instancetype)shared {
    return [AppCenter new];
}

+ (instancetype)allocWithZone:(struct _NSZone *)zone {
    dispatch_once(&onceToken, ^{
        instance = [super allocWithZone:zone];
    });
    return instance;
}

- (instancetype)init {
    dispatch_once(&onceToken, ^{
        instance = [super init];
    });
    self = instance;
    return self;
}

- (id)copy {
    return self;
}

- (id)mutableCopy {
    return self;
}

@end
